<?php

class ex_cont extends CI_Controller {

    function __construct() {
        parent::__construct();
    }

    function elfinder_init() {
        $this->load->helper('path');
        $opts = array(
            // 'debug' => true, 
            'roots' => array(
                array(
                    'driver' => 'LocalFileSystem',
                    'path' => set_realpath('uploads'),
                    'URL' => site_url('uploads') . '/'
                // more elFinder options here
                )
            )
        );
        $this->load->library('elfinder_lib', $opts);
    }

}

?>
